import { createApp,Component } from 'vue'
import App from '@/App.vue'
import {store,key} from '@/store'
import router from "@/router";
// antd icons
import * as icons from '@ant-design/icons-vue'
// antd message css
import 'ant-design-vue/es/message/style/css';
// il8n lang config
import i18n from '@/config/lang/index'
import {message} from "ant-design-vue";
import "animate.css"
import '@/assets/style/common.css'
import VueFullPage from 'vue-fullpage.js'

message.config({
    top: `60px`,
    maxCount: 1,
});
const app = createApp(App);
//register antd icon component
for (const i in icons){
    // @ts-ignore
    app.component(i,icons[i])
}
app.use(store,key)
.use(router)
.use(i18n)
.use(VueFullPage)
.mount('#app');